extends GPUParticles2D


@export var auto_destroy_life_time: float = 1.5


func set_face(face: int):
	var material := process_material as ParticleProcessMaterial
	material.gravity = Vector3(-200 * face, -200, 0)  


func play():
	restart()
	emitting = true
	
	await get_tree().create_timer(auto_destroy_life_time).timeout
	queue_free()
